package com.itchu.system.service;

import com.itchu.common.domain.PageResult;
import com.itchu.system.domain.Authority;
import com.itchu.system.domain.SysRole;


import javax.management.relation.Role;
import java.util.List;

public interface AuthorityService {

    List<Authority> showAuthorityByPid(Long pid);

/*    List<Authority> findAuthoritiesBySid(Long id);

    List<Authority> findAuthoritiesByLid(Long id);*/


    PageResult<Authority> findByPage(String key, Integer page, Integer rows, String sortBy, Boolean desc);

    void addAuthority(Authority authority);

    void deletAuthority(Long id);

    void updateAuthority(Authority authority);

    Authority findById(Long id);

    List<Authority> AllAuthority();

    List<Authority> findAuthorityById(Long id);

    List<SysRole> findRoleByRequestURL(String requestUrl);
}
